package com.eedi.framework.mail.enums;


import com.eedi.framework.common.exception.ErrorCode;
import com.eedi.sys.enums.SysErrorCode;
import com.eedi.sys.enums.SysErrorCodeType;

/**
 * System 错误码枚举类
 *
 * system 系统，使用 1-002-000-000 段
 */
public interface SysMailErrorCodeConstants {




    // ========== 邮箱账号 1-002-023-000 ==========
    ErrorCode SYS_MAIL_ACCOUNT_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.MAIL,000, "邮箱账号不存在");
    ErrorCode SYS_MAIL_ACCOUNT_RELATE_TEMPLATE_EXISTS = new SysErrorCode(SysErrorCodeType.MAIL,001, "无法删除，该邮箱账号还有邮件模板");

    // ========== 邮件模版 1-002-024-000 ==========
    ErrorCode SYS_MAIL_TEMPLATE_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.MAIL,000, "邮件模版不存在");
    ErrorCode SYS_MAIL_TEMPLATE_CODE_EXISTS = new SysErrorCode(SysErrorCodeType.MAIL,001, "邮件模版 code({}) 已存在");

    // ========== 邮件发送 1-002-025-000 ==========
    ErrorCode SYS_MAIL_SEND_TEMPLATE_PARAM_MISS = new SysErrorCode(SysErrorCodeType.MAIL,000, "模板参数({})缺失");
    ErrorCode SYS_MAIL_SEND_MAIL_NOT_EXISTS = new SysErrorCode(SysErrorCodeType.MAIL,001, "邮箱不存在");


}
